﻿using Sorting.App.Models;
using Sorting.App.Models.Model;

namespace Modules.Units
{

    public static class AppsettingUnits
    {


        public static bool IsWorkerServiceLife = false;
        public static CommonConfigOptions Appseeting;


        public static string Token { get; set; }
  
      
        /// <summary>
        /// 当前登录人
        /// </summary>
        public static UserEntity CaCheUserInfo { get; set; }

        public static string UserName {  get; set; }
        /// <summary>
        /// 设备监测信号集合
        /// </summary>

        public static SensorSignalModel SignalModel { get; set; } = new SensorSignalModel();


        public static RabbitMqOptionDto rabbitMq { get; set; }

        /// <summary>
        /// 扫描值
        /// </summary>
        public static string ScanInfo { get; set; } = string.Empty;

        /// <summary>
        /// 当前已经放入入队的个数
        /// </summary>
        public static int PutCount { get; set; }
        public static int TaskCount { get; set; }
        public static int ScanCount { get; set; }

        public static int RunStatus { get; set; }
        public static int ErrorCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public static int LastCount { get; set; }

        public static DateTime LastUpdate { get; set; }
        public static int IsDown { get; set; } = 0;

        public static string barcode { get; set; } = string.Empty;

    }
}